package FinalTest2;

public class person1 {
    private int age;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void ss(int i){
        if (i<0||i>150){
            System.out.println("不合法年龄");
        }else{
            System.out.println("合法");
        }
    }
}
